{% extends 'homepage.html' %}

{% block content %}

<h2> Browse </h2>

<p>
By conductor : 
<a href="?conductor={{'1-99'}}">{{'1-99'}}</a>
<a href="?conductor={{'100-199'}}">{{'100-199'}}</a>
<a href="?conductor={{'200-299'}}">{{'200-299'}}</a>
<a href="?conductor={{'300-399'}}">{{'300-399'}}</a>
</p>
<p>
By rank:
{% for r in info.rank_list: %}
<a href="?rank={{r}}">{{r}}</a>
{% endfor %}
</p>
<p>
By size of torsion subgroup: 
{% for t in info.torsion_list: %}
<a href="?torsion={{t}}">{{t}}</a>
{% endfor %}
</p>


<h2> Jump to a specific curve or isogeny class</h2>
<form>
<input type='text' name='label' size=25>
<button type='submit' name='jump' value='label or isogeny class' >label or isogeny class</button>
<br><span class="formexample">e.g. 11a2 or 389a </span>
</form>

<h2> Search </h2>

<form>
  <table>
    <tr>
      <td>Conductor</td>
     <td>
       <input type='text' name='conductor' example="389" />
     </td>
     <td><span class="formexample"> e.g. 389 </span></td>
    </tr>
    <tr>
      <td>Torsion Order</td><td> <input type='text' name='torsion'></td><td><span class="formexample"> e.g. 2 </span></td>
    </tr>
    <tr>
      <td>Rank </td><td><input type='text' name='rank'></td><td><span class="formexample"> e.g. 0 </span></td>
    </tr>
    <tr>
      <td>Optimal</td>
      <td>
         <select name='optimal'>
           <option value="">No</option>
           <option value="on">Yes</option>
         </select>
      </td>
    </tr>
  </table>
<td><button type='submit' value='Search'>Search</td>

</form>
{% endblock %}
